// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import jQuery from 'jquery'
import 'bootstrap/dist/css/bootstrap.css'
import 'font-awesome/css/font-awesome.css'
import 'bootstrapvalidator/dist/css/bootstrapValidator.min.css'
import { sync } from 'vuex-router-sync'
import store from '@/store/store'
global.jQuery = global.$ = jQuery
let Bootstrap = require('bootstrap')
let bootstrapvalidator = require('bootstrapvalidator')
global._ = require('lodash')
require('bootstrapvalidator')
require('@/plugins/btv/zh_CN.js')

Vue.config.productionTip = false

global.myHostName = process.env.NODE_ENV === 'development' ? 'localhost' : 'www.xiayangjun.com'

sync(store, router)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
